<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<h1>登录</h1>
<h2 th:text="${userMsg}"></h2>
<form action="/login" method="post">
  账号:<input type="text" name="username">
  密码:<input type="password" name="password">
  <input type="submit" value="登录">

</form>
</body>
</html>